n = eval(input())
if n != 0:
    result = 1 / n
else:
    result = 0
print('f(%.1f) = %.1f' % (n, result))
